import { Module } from '@nestjs/common';
import { ServeStaticModule } from '@nestjs/serve-static';
import { join } from 'path';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Chat1Gateway } from './gateway/chat1.gateway';
import { Chat2Gateway } from './gateway/chat2.gateway';
import { SignalGateway } from './signal/signal.gateway';

@Module({
  imports: [ServeStaticModule.forRoot({
    rootPath: join(__dirname, '..', 'web'),
    exclude: ['/api*'],
  }),],
  controllers: [AppController],
  providers: [AppService, Chat1Gateway, Chat2Gateway, SignalGateway],
})
export class AppModule { }
